
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>基本概念 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="design.html" />
    
    
    <link rel="prev" href="intro.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../CHANGELOG.md">
            
                <span>
            
                    
                    修订记录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../CONTRIBUTING.md">
            
                <span>
            
                    
                    如何贡献
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../introduction/">
            
                <a href="../introduction/">
            
                    
                    Docker 简介
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../introduction/what.html">
            
                <a href="../introduction/what.html">
            
                    
                    什么是 Docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../introduction/why.html">
            
                <a href="../introduction/why.html">
            
                    
                    为什么要用 Docker
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../basic_concept/">
            
                <a href="../basic_concept/">
            
                    
                    基本概念
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../basic_concept/image.html">
            
                <a href="../basic_concept/image.html">
            
                    
                    镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../basic_concept/container.html">
            
                <a href="../basic_concept/container.html">
            
                    
                    容器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../basic_concept/repository.html">
            
                <a href="../basic_concept/repository.html">
            
                    
                    仓库
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../install/">
            
                <a href="../install/">
            
                    
                    安装 Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../install/ubuntu.html">
            
                <a href="../install/ubuntu.html">
            
                    
                    Ubuntu
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../install/debian.html">
            
                <a href="../install/debian.html">
            
                    
                    Debian
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../install/fedora.html">
            
                <a href="../install/fedora.html">
            
                    
                    Fedora
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../install/centos.html">
            
                <a href="../install/centos.html">
            
                    
                    CentOS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../install/raspberry-pi.html">
            
                <a href="../install/raspberry-pi.html">
            
                    
                    Raspberry Pi
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../install/mac.html">
            
                <a href="../install/mac.html">
            
                    
                    macOS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../install/windows.html">
            
                <a href="../install/windows.html">
            
                    
                    Windows 10
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../install/mirror.html">
            
                <a href="../install/mirror.html">
            
                    
                    镜像加速器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../install/experimental.html">
            
                <a href="../install/experimental.html">
            
                    
                    开启实验特性
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../image/">
            
                <a href="../image/">
            
                    
                    使用镜像
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../image/pull.html">
            
                <a href="../image/pull.html">
            
                    
                    获取镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../image/list.html">
            
                <a href="../image/list.html">
            
                    
                    列出镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../image/rm.html">
            
                <a href="../image/rm.html">
            
                    
                    删除本地镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../image/commit.html">
            
                <a href="../image/commit.html">
            
                    
                    利用 commit 理解镜像构成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../image/build.html">
            
                <a href="../image/build.html">
            
                    
                    使用 Dockerfile 定制镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../image/dockerfile/">
            
                <a href="../image/dockerfile/">
            
                    
                    Dockerfile 指令详解
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.6.1" data-path="../image/dockerfile/copy.html">
            
                <a href="../image/dockerfile/copy.html">
            
                    
                    COPY 复制文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6.2" data-path="../image/dockerfile/add.html">
            
                <a href="../image/dockerfile/add.html">
            
                    
                    ADD 更高级的复制文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6.3" data-path="../image/dockerfile/cmd.html">
            
                <a href="../image/dockerfile/cmd.html">
            
                    
                    CMD 容器启动命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6.4" data-path="../image/dockerfile/entrypoint.html">
            
                <a href="../image/dockerfile/entrypoint.html">
            
                    
                    ENTRYPOINT 入口点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6.5" data-path="../image/dockerfile/env.html">
            
                <a href="../image/dockerfile/env.html">
            
                    
                    ENV 设置环境变量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6.6" data-path="../image/dockerfile/arg.html">
            
                <a href="../image/dockerfile/arg.html">
            
                    
                    ARG 构建参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6.7" data-path="../image/dockerfile/volume.html">
            
                <a href="../image/dockerfile/volume.html">
            
                    
                    VOLUME 定义匿名卷
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6.8" data-path="../image/dockerfile/expose.html">
            
                <a href="../image/dockerfile/expose.html">
            
                    
                    EXPOSE 暴露端口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6.9" data-path="../image/dockerfile/workdir.html">
            
                <a href="../image/dockerfile/workdir.html">
            
                    
                    WORKDIR 指定工作目录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6.10" data-path="../image/dockerfile/user.html">
            
                <a href="../image/dockerfile/user.html">
            
                    
                    USER 指定当前用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6.11" data-path="../image/dockerfile/healthcheck.html">
            
                <a href="../image/dockerfile/healthcheck.html">
            
                    
                    HEALTHCHECK 健康检查
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6.12" data-path="../image/dockerfile/onbuild.html">
            
                <a href="../image/dockerfile/onbuild.html">
            
                    
                    ONBUILD 为他人作嫁衣裳
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6.13" data-path="../image/dockerfile/references.html">
            
                <a href="../image/dockerfile/references.html">
            
                    
                    参考文档
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7.7" data-path="../image/multistage-builds/">
            
                <a href="../image/multistage-builds/">
            
                    
                    Dockerfile 多阶段构建
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.7.1" data-path="../image/multistage-builds/laravel.html">
            
                <a href="../image/multistage-builds/laravel.html">
            
                    
                    实战多阶段构建 Laravel 镜像
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7.8" data-path="../image/manifest.html">
            
                <a href="../image/manifest.html">
            
                    
                    构建多种系统架构支持的 Docker 镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.9" data-path="../image/other.html">
            
                <a href="../image/other.html">
            
                    
                    其它制作镜像的方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.10" data-path="../image/internal.html">
            
                <a href="../image/internal.html">
            
                    
                    实现原理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../container/">
            
                <a href="../container/">
            
                    
                    操作容器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../container/run.html">
            
                <a href="../container/run.html">
            
                    
                    启动
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../container/daemon.html">
            
                <a href="../container/daemon.html">
            
                    
                    守护态运行
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../container/stop.html">
            
                <a href="../container/stop.html">
            
                    
                    终止
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../container/attach_exec.html">
            
                <a href="../container/attach_exec.html">
            
                    
                    进入容器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="../container/import_export.html">
            
                <a href="../container/import_export.html">
            
                    
                    导出和导入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.6" data-path="../container/rm.html">
            
                <a href="../container/rm.html">
            
                    
                    删除
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../repository/">
            
                <a href="../repository/">
            
                    
                    访问仓库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../repository/dockerhub.html">
            
                <a href="../repository/dockerhub.html">
            
                    
                    Docker Hub
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../repository/registry.html">
            
                <a href="../repository/registry.html">
            
                    
                    私有仓库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../repository/registry_auth.html">
            
                <a href="../repository/registry_auth.html">
            
                    
                    私有仓库高级配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../repository/nexus3_registry.html">
            
                <a href="../repository/nexus3_registry.html">
            
                    
                    Nexus 3
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../data_management/">
            
                <a href="../data_management/">
            
                    
                    数据管理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../data_management/volume.html">
            
                <a href="../data_management/volume.html">
            
                    
                    数据卷
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../data_management/bind-mounts.html">
            
                <a href="../data_management/bind-mounts.html">
            
                    
                    挂载主机目录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../network/">
            
                <a href="../network/">
            
                    
                    使用网络
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../network/port_mapping.html">
            
                <a href="../network/port_mapping.html">
            
                    
                    外部访问容器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../network/linking.html">
            
                <a href="../network/linking.html">
            
                    
                    容器互联
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../network/dns.html">
            
                <a href="../network/dns.html">
            
                    
                    配置 DNS
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../advanced_network/">
            
                <a href="../advanced_network/">
            
                    
                    高级网络配置
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../advanced_network/quick_guide.html">
            
                <a href="../advanced_network/quick_guide.html">
            
                    
                    快速配置指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../advanced_network/access_control.html">
            
                <a href="../advanced_network/access_control.html">
            
                    
                    容器访问控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" data-path="../advanced_network/port_mapping.html">
            
                <a href="../advanced_network/port_mapping.html">
            
                    
                    端口映射实现
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.4" data-path="../advanced_network/docker0.html">
            
                <a href="../advanced_network/docker0.html">
            
                    
                    配置 docker0 网桥
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.5" data-path="../advanced_network/bridge.html">
            
                <a href="../advanced_network/bridge.html">
            
                    
                    自定义网桥
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.6" data-path="../advanced_network/example.html">
            
                <a href="../advanced_network/example.html">
            
                    
                    工具和示例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.7" data-path="../advanced_network/config_file.html">
            
                <a href="../advanced_network/config_file.html">
            
                    
                    编辑网络配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.8" data-path="../advanced_network/ptp.html">
            
                <a href="../advanced_network/ptp.html">
            
                    
                    实例：创建一个点到点连接
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../buildx/">
            
                <a href="../buildx/">
            
                    
                    Docker Buildx
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../buildx/buildkit.html">
            
                <a href="../buildx/buildkit.html">
            
                    
                    BuildKit
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../buildx/buildx.html">
            
                <a href="../buildx/buildx.html">
            
                    
                    使用 buildx 构建镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="../buildx/multi-arch-images.html">
            
                <a href="../buildx/multi-arch-images.html">
            
                    
                    使用 buildx 构建多种系统架构支持的 Docker 镜像
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../compose/">
            
                <a href="../compose/">
            
                    
                    Docker Compose
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../compose/introduction.html">
            
                <a href="../compose/introduction.html">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="../compose/install.html">
            
                <a href="../compose/install.html">
            
                    
                    安装与卸载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="../compose/usage.html">
            
                <a href="../compose/usage.html">
            
                    
                    使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.4" data-path="../compose/commands.html">
            
                <a href="../compose/commands.html">
            
                    
                    命令说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.5" data-path="../compose/compose_file.html">
            
                <a href="../compose/compose_file.html">
            
                    
                    Compose 模板文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.6" data-path="../compose/django.html">
            
                <a href="../compose/django.html">
            
                    
                    实战 Django
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.7" data-path="../compose/rails.html">
            
                <a href="../compose/rails.html">
            
                    
                    实战 Rails
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.8" data-path="../compose/wordpress.html">
            
                <a href="../compose/wordpress.html">
            
                    
                    实战 WordPress
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.9" data-path="../compose/lnmp.html">
            
                <a href="../compose/lnmp.html">
            
                    
                    实战 LNMP
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../swarm_mode/">
            
                <a href="../swarm_mode/">
            
                    
                    Swarm mode
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="../swarm_mode/overview.html">
            
                <a href="../swarm_mode/overview.html">
            
                    
                    基本概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="../swarm_mode/create.html">
            
                <a href="../swarm_mode/create.html">
            
                    
                    创建 Swarm 集群
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3" data-path="../swarm_mode/deploy.html">
            
                <a href="../swarm_mode/deploy.html">
            
                    
                    部署服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4" data-path="../swarm_mode/stack.html">
            
                <a href="../swarm_mode/stack.html">
            
                    
                    使用 compose 文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.5" data-path="../swarm_mode/secret.html">
            
                <a href="../swarm_mode/secret.html">
            
                    
                    管理密钥
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.6" data-path="../swarm_mode/config.html">
            
                <a href="../swarm_mode/config.html">
            
                    
                    管理配置信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.7" data-path="../swarm_mode/rolling_update.html">
            
                <a href="../swarm_mode/rolling_update.html">
            
                    
                    滚动升级
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../security/">
            
                <a href="../security/">
            
                    
                    安全
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.16.1" data-path="../security/kernel_ns.html">
            
                <a href="../security/kernel_ns.html">
            
                    
                    内核命名空间
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.2" data-path="../security/control_group.html">
            
                <a href="../security/control_group.html">
            
                    
                    控制组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.3" data-path="../security/daemon_sec.html">
            
                <a href="../security/daemon_sec.html">
            
                    
                    服务端防护
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.4" data-path="../security/kernel_capability.html">
            
                <a href="../security/kernel_capability.html">
            
                    
                    内核能力机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.5" data-path="../security/other_feature.html">
            
                <a href="../security/other_feature.html">
            
                    
                    其它安全特性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.6" data-path="../security/summary.html">
            
                <a href="../security/summary.html">
            
                    
                    总结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../underly/">
            
                <a href="../underly/">
            
                    
                    底层实现
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../underly/arch.html">
            
                <a href="../underly/arch.html">
            
                    
                    基本架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../underly/namespace.html">
            
                <a href="../underly/namespace.html">
            
                    
                    命名空间
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.3" data-path="../underly/cgroups.html">
            
                <a href="../underly/cgroups.html">
            
                    
                    控制组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.4" data-path="../underly/ufs.html">
            
                <a href="../underly/ufs.html">
            
                    
                    联合文件系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.5" data-path="../underly/container_format.html">
            
                <a href="../underly/container_format.html">
            
                    
                    容器格式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.6" data-path="../underly/network.html">
            
                <a href="../underly/network.html">
            
                    
                    网络
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="../etcd/">
            
                <a href="../etcd/">
            
                    
                    Etcd 项目
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.18.1" data-path="../etcd/intro.html">
            
                <a href="../etcd/intro.html">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.2" data-path="../etcd/install.html">
            
                <a href="../etcd/install.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.3" data-path="../etcd/cluster.html">
            
                <a href="../etcd/cluster.html">
            
                    
                    集群
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.4" data-path="../etcd/etcdctl.html">
            
                <a href="../etcd/etcdctl.html">
            
                    
                    使用 etcdctl
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="../coreos/">
            
                <a href="../coreos/">
            
                    
                    Fedora CoreOS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.19.1" data-path="../coreos/intro.html">
            
                <a href="../coreos/intro.html">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.19.2" data-path="../coreos/install.html">
            
                <a href="../coreos/install.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="./">
            
                <a href="./">
            
                    
                    Kubernetes - 开源容器编排引擎
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.20.1" data-path="intro.html">
            
                <a href="intro.html">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.20.2" data-path="concepts.html">
            
                <a href="concepts.html">
            
                    
                    基本概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20.3" data-path="design.html">
            
                <a href="design.html">
            
                    
                    架构设计
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="setup/">
            
                <a href="setup/">
            
                    
                    部署 Kubernetes
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.21.1" data-path="setup/kubeadm.html">
            
                <a href="setup/kubeadm.html">
            
                    
                    使用 kubeadm 部署 kubernetes
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21.2" data-path="setup/docker-desktop.html">
            
                <a href="setup/docker-desktop.html">
            
                    
                    在 Docker Desktop 使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21.3" data-path="setup/systemd.html">
            
                <a href="setup/systemd.html">
            
                    
                    一步步部署 kubernetes 集群
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21.4" data-path="setup/dashboard.html">
            
                <a href="setup/dashboard.html">
            
                    
                    部署 Dashboard
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.22" data-path="kubectl/">
            
                <a href="kubectl/">
            
                    
                    Kubernetes 命令行 kubectl
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.23" data-path="../cloud/">
            
                <a href="../cloud/">
            
                    
                    容器与云计算
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.23.1" data-path="../cloud/intro.html">
            
                <a href="../cloud/intro.html">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.23.2" data-path="../cloud/tencentCloud.html">
            
                <a href="../cloud/tencentCloud.html">
            
                    
                    腾讯云
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.23.3" data-path="../cloud/alicloud.html">
            
                <a href="../cloud/alicloud.html">
            
                    
                    阿里云
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.23.4" data-path="../cloud/aws.html">
            
                <a href="../cloud/aws.html">
            
                    
                    亚马逊云
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.23.5" data-path="../cloud/summary.html">
            
                <a href="../cloud/summary.html">
            
                    
                    小结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.24" data-path="../cases/os/">
            
                <a href="../cases/os/">
            
                    
                    实战案例 - 操作系统
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.24.1" data-path="../cases/os/busybox.html">
            
                <a href="../cases/os/busybox.html">
            
                    
                    Busybox
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.24.2" data-path="../cases/os/alpine.html">
            
                <a href="../cases/os/alpine.html">
            
                    
                    Alpine
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.24.3" data-path="../cases/os/debian.html">
            
                <a href="../cases/os/debian.html">
            
                    
                    Debian Ubuntu
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.24.4" data-path="../cases/os/centos.html">
            
                <a href="../cases/os/centos.html">
            
                    
                    CentOS Fedora
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.24.5" data-path="../cases/os/summary.html">
            
                <a href="../cases/os/summary.html">
            
                    
                    本章小结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.25" data-path="../cases/ci/">
            
                <a href="../cases/ci/">
            
                    
                    实战案例 - CI/CD
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.25.1" data-path="../cases/ci/actions/">
            
                <a href="../cases/ci/actions/">
            
                    
                    GitHub Actions
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.25.2" data-path="../cases/ci/drone/">
            
                <a href="../cases/ci/drone/">
            
                    
                    Drone
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.25.2.1" data-path="../cases/ci/drone/install.html">
            
                <a href="../cases/ci/drone/install.html">
            
                    
                    部署 Drone
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.25.3" data-path="../cases/ci/travis/">
            
                <a href="../cases/ci/travis/">
            
                    
                    Travis CI
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.26" data-path="../IDE/">
            
                <a href="../IDE/">
            
                    
                    在 IDE 中使用 Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.26.1" data-path="../IDE/vsCode.html">
            
                <a href="../IDE/vsCode.html">
            
                    
                    VS Code
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.27" data-path="../opensource/">
            
                <a href="../opensource/">
            
                    
                    Docker 开源项目
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.27.1" data-path="../opensource/linuxkit.html">
            
                <a href="../opensource/linuxkit.html">
            
                    
                    LinuxKit
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.28" data-path="../podman/">
            
                <a href="../podman/">
            
                    
                    podman - 下一代 Linux 容器工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29" data-path="../appendix/">
            
                <a href="../appendix/">
            
                    
                    附录
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.29.1" data-path="../appendix/faq/">
            
                <a href="../appendix/faq/">
            
                    
                    附录一：常见问题总结
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29.2" data-path="../appendix/repo/">
            
                <a href="../appendix/repo/">
            
                    
                    附录二：热门镜像介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.29.2.1" data-path="../appendix/repo/ubuntu.html">
            
                <a href="../appendix/repo/ubuntu.html">
            
                    
                    Ubuntu
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29.2.2" data-path="../appendix/repo/centos.html">
            
                <a href="../appendix/repo/centos.html">
            
                    
                    CentOS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29.2.3" data-path="../appendix/repo/nginx.html">
            
                <a href="../appendix/repo/nginx.html">
            
                    
                    Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29.2.4" data-path="../appendix/repo/php.html">
            
                <a href="../appendix/repo/php.html">
            
                    
                    PHP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29.2.5" data-path="../appendix/repo/nodejs.html">
            
                <a href="../appendix/repo/nodejs.html">
            
                    
                    Node.js
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29.2.6" data-path="../appendix/repo/mysql.html">
            
                <a href="../appendix/repo/mysql.html">
            
                    
                    MySQL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29.2.7" data-path="../appendix/repo/wordpress.html">
            
                <a href="../appendix/repo/wordpress.html">
            
                    
                    WordPress
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29.2.8" data-path="../appendix/repo/mongodb.html">
            
                <a href="../appendix/repo/mongodb.html">
            
                    
                    MongoDB
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29.2.9" data-path="../appendix/repo/redis.html">
            
                <a href="../appendix/repo/redis.html">
            
                    
                    Redis
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.29.3" data-path="../appendix/command/">
            
                <a href="../appendix/command/">
            
                    
                    附录三：Docker 命令查询
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.29.3.1" data-path="../appendix/command/docker.html">
            
                <a href="../appendix/command/docker.html">
            
                    
                    客户端命令 - docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29.3.2" data-path="../appendix/command/dockerd.html">
            
                <a href="../appendix/command/dockerd.html">
            
                    
                    服务端命令 - dockerd
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.29.4" data-path="../appendix/best_practices.html">
            
                <a href="../appendix/best_practices.html">
            
                    
                    附录四：Dockerfile 最佳实践
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29.5" data-path="../appendix/debug.html">
            
                <a href="../appendix/debug.html">
            
                    
                    附录五：如何调试 Docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29.6" data-path="../appendix/resources.html">
            
                <a href="../appendix/resources.html">
            
                    
                    附录六：资源链接
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.30" data-path="../archive/">
            
                <a href="../archive/">
            
                    
                    归档
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.30.1" data-path="../mesos/">
            
                <a href="../mesos/">
            
                    
                    Mesos - 优秀的集群资源调度平台
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.30.1.1" data-path="../mesos/intro.html">
            
                <a href="../mesos/intro.html">
            
                    
                    Mesos 简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.30.1.2" data-path="../mesos/installation.html">
            
                <a href="../mesos/installation.html">
            
                    
                    安装与使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.30.1.3" data-path="../mesos/architecture.html">
            
                <a href="../mesos/architecture.html">
            
                    
                    原理与架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.30.1.4" data-path="../mesos/configuration.html">
            
                <a href="../mesos/configuration.html">
            
                    
                    Mesos 配置项解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.30.1.5" data-path="../mesos/monitor.html">
            
                <a href="../mesos/monitor.html">
            
                    
                    日志与监控
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.30.1.6" data-path="../mesos/framework.html">
            
                <a href="../mesos/framework.html">
            
                    
                    常见应用框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.30.1.7" data-path="../mesos/summary.html">
            
                <a href="../mesos/summary.html">
            
                    
                    本章小结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.30.2" data-path="../machine/">
            
                <a href="../machine/">
            
                    
                    Docker Machine
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.30.2.1" data-path="../machine/install.html">
            
                <a href="../machine/install.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.30.2.2" data-path="../machine/usage.html">
            
                <a href="../machine/usage.html">
            
                    
                    使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.30.3" data-path="../swarm/">
            
                <a href="../swarm/">
            
                    
                    Docker Swarm
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >基本概念</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x57FA;&#x672C;&#x6982;&#x5FF5;">&#x57FA;&#x672C;&#x6982;&#x5FF5;</h1>
<p><img src="_images/kubernetes_design.jpg" alt=""></p>
<ul>
<li>&#x8282;&#x70B9;&#xFF08;<code>Node</code>&#xFF09;&#xFF1A;&#x4E00;&#x4E2A;&#x8282;&#x70B9;&#x662F;&#x4E00;&#x4E2A;&#x8FD0;&#x884C; Kubernetes &#x4E2D;&#x7684;&#x4E3B;&#x673A;&#x3002;</li>
<li>&#x5BB9;&#x5668;&#x7EC4;&#xFF08;<code>Pod</code>&#xFF09;&#xFF1A;&#x4E00;&#x4E2A; Pod &#x5BF9;&#x5E94;&#x4E8E;&#x7531;&#x82E5;&#x5E72;&#x5BB9;&#x5668;&#x7EC4;&#x6210;&#x7684;&#x4E00;&#x4E2A;&#x5BB9;&#x5668;&#x7EC4;&#xFF0C;&#x540C;&#x4E2A;&#x7EC4;&#x5185;&#x7684;&#x5BB9;&#x5668;&#x5171;&#x4EAB;&#x4E00;&#x4E2A;&#x5B58;&#x50A8;&#x5377;(volume)&#x3002;</li>
<li>&#x5BB9;&#x5668;&#x7EC4;&#x751F;&#x547D;&#x5468;&#x671F;&#xFF08;<code>pos-states</code>&#xFF09;&#xFF1A;&#x5305;&#x542B;&#x6240;&#x6709;&#x5BB9;&#x5668;&#x72B6;&#x6001;&#x96C6;&#x5408;&#xFF0C;&#x5305;&#x62EC;&#x5BB9;&#x5668;&#x7EC4;&#x72B6;&#x6001;&#x7C7B;&#x578B;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x751F;&#x547D;&#x5468;&#x671F;&#xFF0C;&#x4E8B;&#x4EF6;&#xFF0C;&#x91CD;&#x542F;&#x7B56;&#x7565;&#xFF0C;&#x4EE5;&#x53CA; replication controllers&#x3002;</li>
<li>Replication Controllers&#xFF1A;&#x4E3B;&#x8981;&#x8D1F;&#x8D23;&#x6307;&#x5B9A;&#x6570;&#x91CF;&#x7684; pod &#x5728;&#x540C;&#x4E00;&#x65F6;&#x95F4;&#x4E00;&#x8D77;&#x8FD0;&#x884C;&#x3002;</li>
<li>&#x670D;&#x52A1;&#xFF08;<code>services</code>&#xFF09;&#xFF1A;&#x4E00;&#x4E2A; Kubernetes &#x670D;&#x52A1;&#x662F;&#x5BB9;&#x5668;&#x7EC4;&#x903B;&#x8F91;&#x7684;&#x9AD8;&#x7EA7;&#x62BD;&#x8C61;&#xFF0C;&#x540C;&#x65F6;&#x4E5F;&#x5BF9;&#x5916;&#x63D0;&#x4F9B;&#x8BBF;&#x95EE;&#x5BB9;&#x5668;&#x7EC4;&#x7684;&#x7B56;&#x7565;&#x3002;</li>
<li>&#x5377;&#xFF08;<code>volumes</code>&#xFF09;&#xFF1A;&#x4E00;&#x4E2A;&#x5377;&#x5C31;&#x662F;&#x4E00;&#x4E2A;&#x76EE;&#x5F55;&#xFF0C;&#x5BB9;&#x5668;&#x5BF9;&#x5176;&#x6709;&#x8BBF;&#x95EE;&#x6743;&#x9650;&#x3002;</li>
<li>&#x6807;&#x7B7E;&#xFF08;<code>labels</code>&#xFF09;&#xFF1A;&#x6807;&#x7B7E;&#x662F;&#x7528;&#x6765;&#x8FDE;&#x63A5;&#x4E00;&#x7EC4;&#x5BF9;&#x8C61;&#x7684;&#xFF0C;&#x6BD4;&#x5982;&#x5BB9;&#x5668;&#x7EC4;&#x3002;&#x6807;&#x7B7E;&#x53EF;&#x4EE5;&#x88AB;&#x7528;&#x6765;&#x7EC4;&#x7EC7;&#x548C;&#x9009;&#x62E9;&#x5B50;&#x5BF9;&#x8C61;&#x3002;</li>
<li>&#x63A5;&#x53E3;&#x6743;&#x9650;&#xFF08;<code>accessing_the_api</code>&#xFF09;&#xFF1A;&#x7AEF;&#x53E3;&#xFF0C;IP &#x5730;&#x5740;&#x548C;&#x4EE3;&#x7406;&#x7684;&#x9632;&#x706B;&#x5899;&#x89C4;&#x5219;&#x3002;</li>
<li>web &#x754C;&#x9762;&#xFF08;<code>ux</code>&#xFF09;&#xFF1A;&#x7528;&#x6237;&#x53EF;&#x4EE5;&#x901A;&#x8FC7; web &#x754C;&#x9762;&#x64CD;&#x4F5C; Kubernetes&#x3002;</li>
<li>&#x547D;&#x4EE4;&#x884C;&#x64CD;&#x4F5C;&#xFF08;<code>cli</code>&#xFF09;&#xFF1A;<code>kubectl</code>&#x547D;&#x4EE4;&#x3002;</li>
</ul>
<h2 id="&#x8282;&#x70B9;">&#x8282;&#x70B9;</h2>
<p>&#x5728; <code>Kubernetes</code> &#x4E2D;&#xFF0C;&#x8282;&#x70B9;&#x662F;&#x5B9E;&#x9645;&#x5DE5;&#x4F5C;&#x7684;&#x70B9;&#xFF0C;&#x8282;&#x70B9;&#x53EF;&#x4EE5;&#x662F;&#x865A;&#x62DF;&#x673A;&#x6216;&#x8005;&#x7269;&#x7406;&#x673A;&#x5668;&#xFF0C;&#x4F9D;&#x8D56;&#x4E8E;&#x4E00;&#x4E2A;&#x96C6;&#x7FA4;&#x73AF;&#x5883;&#x3002;&#x6BCF;&#x4E2A;&#x8282;&#x70B9;&#x90FD;&#x6709;&#x4E00;&#x4E9B;&#x5FC5;&#x8981;&#x7684;&#x670D;&#x52A1;&#x4EE5;&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#x7EC4;&#xFF0C;&#x5E76;&#x4E14;&#x5B83;&#x4EEC;&#x90FD;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x4E3B;&#x8282;&#x70B9;&#x6765;&#x7BA1;&#x7406;&#x3002;&#x5FC5;&#x8981;&#x670D;&#x52A1;&#x5305;&#x62EC; Docker&#xFF0C;kubelet &#x548C;&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x3002;</p>
<h3 id="&#x5BB9;&#x5668;&#x72B6;&#x6001;">&#x5BB9;&#x5668;&#x72B6;&#x6001;</h3>
<p>&#x5BB9;&#x5668;&#x72B6;&#x6001;&#x7528;&#x6765;&#x63CF;&#x8FF0;&#x8282;&#x70B9;&#x7684;&#x5F53;&#x524D;&#x72B6;&#x6001;&#x3002;&#x73B0;&#x5728;&#xFF0C;&#x5176;&#x4E2D;&#x5305;&#x542B;&#x4E09;&#x4E2A;&#x4FE1;&#x606F;&#xFF1A;</p>
<h4 id="&#x4E3B;&#x673A;ip">&#x4E3B;&#x673A;IP</h4>
<p>&#x4E3B;&#x673A; IP &#x9700;&#x8981;&#x4E91;&#x5E73;&#x53F0;&#x6765;&#x67E5;&#x8BE2;&#xFF0C;<code>Kubernetes</code> &#x628A;&#x5B83;&#x4F5C;&#x4E3A;&#x72B6;&#x6001;&#x7684;&#x4E00;&#x90E8;&#x5206;&#x6765;&#x4FDD;&#x5B58;&#x3002;&#x5982;&#x679C; <code>Kubernetes</code> &#x6CA1;&#x6709;&#x8FD0;&#x884C;&#x5728;&#x4E91;&#x5E73;&#x53F0;&#x4E0A;&#xFF0C;&#x8282;&#x70B9; ID &#x5C31;&#x662F;&#x5FC5;&#x9700;&#x7684;&#x3002;IP &#x5730;&#x5740;&#x53EF;&#x4EE5;&#x53D8;&#x5316;&#xFF0C;&#x5E76;&#x4E14;&#x53EF;&#x4EE5;&#x5305;&#x542B;&#x591A;&#x79CD;&#x7C7B;&#x578B;&#x7684; IP &#x5730;&#x5740;&#xFF0C;&#x5982;&#x516C;&#x5171; IP&#xFF0C;&#x79C1;&#x6709; IP&#xFF0C;&#x52A8;&#x6001; IP&#xFF0C;ipv6 &#x7B49;&#x7B49;&#x3002;</p>
<h4 id="&#x8282;&#x70B9;&#x5468;&#x671F;">&#x8282;&#x70B9;&#x5468;&#x671F;</h4>
<p>&#x901A;&#x5E38;&#x6765;&#x8BF4;&#x8282;&#x70B9;&#x6709; <code>Pending</code>&#xFF0C;<code>Running</code>&#xFF0C;<code>Terminated</code> &#x4E09;&#x4E2A;&#x5468;&#x671F;&#xFF0C;&#x5982;&#x679C; Kubernetes &#x53D1;&#x73B0;&#x4E86;&#x4E00;&#x4E2A;&#x8282;&#x70B9;&#x5E76;&#x4E14;&#x5176;&#x53EF;&#x7528;&#xFF0C;&#x90A3;&#x4E48; Kubernetes &#x5C31;&#x628A;&#x5B83;&#x6807;&#x8BB0;&#x4E3A; <code>Pending</code>&#x3002;&#x7136;&#x540E;&#x5728;&#x67D0;&#x4E2A;&#x65F6;&#x523B;&#xFF0C;Kubernetes &#x5C06;&#x4F1A;&#x6807;&#x8BB0;&#x5176;&#x4E3A; <code>Running</code>&#x3002;&#x8282;&#x70B9;&#x7684;&#x7ED3;&#x675F;&#x5468;&#x671F;&#x79F0;&#x4E3A; <code>Terminated</code>&#x3002;&#x4E00;&#x4E2A;&#x5DF2;&#x7ECF; <code>Terminated</code> &#x7684;&#x8282;&#x70B9;&#x4E0D;&#x4F1A;&#x63A5;&#x53D7;&#x548C;&#x8C03;&#x5EA6;&#x4EFB;&#x4F55;&#x8BF7;&#x6C42;&#xFF0C;&#x5E76;&#x4E14;&#x5DF2;&#x7ECF;&#x5728;&#x5176;&#x4E0A;&#x8FD0;&#x884C;&#x7684;&#x5BB9;&#x5668;&#x7EC4;&#x4E5F;&#x4F1A;&#x5220;&#x9664;&#x3002;</p>
<h4 id="&#x8282;&#x70B9;&#x72B6;&#x6001;">&#x8282;&#x70B9;&#x72B6;&#x6001;</h4>
<p>&#x8282;&#x70B9;&#x7684;&#x72B6;&#x6001;&#x4E3B;&#x8981;&#x662F;&#x7528;&#x6765;&#x63CF;&#x8FF0;&#x5904;&#x4E8E; <code>Running</code> &#x7684;&#x8282;&#x70B9;&#x3002;&#x5F53;&#x524D;&#x53EF;&#x7528;&#x7684;&#x6709; <code>NodeReachable</code> &#x548C; <code>NodeReady</code>&#x3002;&#x4EE5;&#x540E;&#x53EF;&#x80FD;&#x4F1A;&#x589E;&#x52A0;&#x5176;&#x4ED6;&#x72B6;&#x6001;&#x3002;<code>NodeReachable</code> &#x8868;&#x793A;&#x96C6;&#x7FA4;&#x53EF;&#x8FBE;&#x3002;<code>NodeReady</code> &#x8868;&#x793A; kubelet &#x8FD4;&#x56DE; Status Ok &#x5E76;&#x4E14; HTTP &#x72B6;&#x6001;&#x68C0;&#x67E5;&#x5065;&#x5EB7;&#x3002;</p>
<h3 id="&#x8282;&#x70B9;&#x7BA1;&#x7406;">&#x8282;&#x70B9;&#x7BA1;&#x7406;</h3>
<p>&#x8282;&#x70B9;&#x5E76;&#x975E; Kubernetes &#x521B;&#x5EFA;&#xFF0C;&#x800C;&#x662F;&#x7531;&#x4E91;&#x5E73;&#x53F0;&#x521B;&#x5EFA;&#xFF0C;&#x6216;&#x8005;&#x5C31;&#x662F;&#x7269;&#x7406;&#x673A;&#x5668;&#x3001;&#x865A;&#x62DF;&#x673A;&#x3002;&#x5728; Kubernetes &#x4E2D;&#xFF0C;&#x8282;&#x70B9;&#x4EC5;&#x4EC5;&#x662F;&#x4E00;&#x6761;&#x8BB0;&#x5F55;&#xFF0C;&#x8282;&#x70B9;&#x521B;&#x5EFA;&#x4E4B;&#x540E;&#xFF0C;Kubernetes &#x4F1A;&#x68C0;&#x67E5;&#x5176;&#x662F;&#x5426;&#x53EF;&#x7528;&#x3002;&#x5728; Kubernetes &#x4E2D;&#xFF0C;&#x8282;&#x70B9;&#x7528;&#x5982;&#x4E0B;&#x7ED3;&#x6784;&#x4FDD;&#x5B58;&#xFF1A;</p>
<pre><code class="lang-json">{
  <span class="hljs-string">&quot;id&quot;</span>: <span class="hljs-string">&quot;10.1.2.3&quot;</span>,
  <span class="hljs-string">&quot;kind&quot;</span>: <span class="hljs-string">&quot;Minion&quot;</span>,
  <span class="hljs-string">&quot;apiVersion&quot;</span>: <span class="hljs-string">&quot;v1beta1&quot;</span>,
  <span class="hljs-string">&quot;resources&quot;</span>: {
    <span class="hljs-string">&quot;capacity&quot;</span>: {
      <span class="hljs-string">&quot;cpu&quot;</span>: <span class="hljs-number">1000</span>,
      <span class="hljs-string">&quot;memory&quot;</span>: <span class="hljs-number">1073741824</span>
    },
  },
  <span class="hljs-string">&quot;labels&quot;</span>: {
    <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;my-first-k8s-node&quot;</span>,
  },
}
</code></pre>
<p>Kubernetes &#x6821;&#x9A8C;&#x8282;&#x70B9;&#x53EF;&#x7528;&#x4F9D;&#x8D56;&#x4E8E; ID&#x3002;&#x5728;&#x5F53;&#x524D;&#x7684;&#x7248;&#x672C;&#x4E2D;&#xFF0C;&#x6709;&#x4E24;&#x4E2A;&#x63A5;&#x53E3;&#x53EF;&#x4EE5;&#x7528;&#x6765;&#x7BA1;&#x7406;&#x8282;&#x70B9;&#xFF1A;&#x8282;&#x70B9;&#x63A7;&#x5236;&#x548C; Kube &#x7BA1;&#x7406;&#x3002;</p>
<h3 id="&#x8282;&#x70B9;&#x63A7;&#x5236;">&#x8282;&#x70B9;&#x63A7;&#x5236;</h3>
<p>&#x5728; Kubernetes &#x4E3B;&#x8282;&#x70B9;&#x4E2D;&#xFF0C;&#x8282;&#x70B9;&#x63A7;&#x5236;&#x5668;&#x662F;&#x7528;&#x6765;&#x7BA1;&#x7406;&#x8282;&#x70B9;&#x7684;&#x7EC4;&#x4EF6;&#x3002;&#x4E3B;&#x8981;&#x5305;&#x542B;&#xFF1A;</p>
<ul>
<li>&#x96C6;&#x7FA4;&#x8303;&#x56F4;&#x5185;&#x8282;&#x70B9;&#x540C;&#x6B65;</li>
<li>&#x5355;&#x8282;&#x70B9;&#x751F;&#x547D;&#x5468;&#x671F;&#x7BA1;&#x7406;</li>
</ul>
<p>&#x8282;&#x70B9;&#x63A7;&#x5236;&#x6709;&#x4E00;&#x4E2A;&#x540C;&#x6B65;&#x8F6E;&#x5BFB;&#xFF0C;&#x4E3B;&#x8981;&#x76D1;&#x542C;&#x6240;&#x6709;&#x4E91;&#x5E73;&#x53F0;&#x7684;&#x865A;&#x62DF;&#x5B9E;&#x4F8B;&#xFF0C;&#x4F1A;&#x6839;&#x636E;&#x8282;&#x70B9;&#x72B6;&#x6001;&#x521B;&#x5EFA;&#x548C;&#x5220;&#x9664;&#x3002;&#x53EF;&#x4EE5;&#x901A;&#x8FC7; <code>--node_sync_period</code>&#x6807;&#x5FD7;&#x6765;&#x63A7;&#x5236;&#x8BE5;&#x8F6E;&#x5BFB;&#x3002;&#x5982;&#x679C;&#x4E00;&#x4E2A;&#x5B9E;&#x4F8B;&#x5DF2;&#x7ECF;&#x521B;&#x5EFA;&#xFF0C;&#x8282;&#x70B9;&#x63A7;&#x5236;&#x5C06;&#x4F1A;&#x4E3A;&#x5176;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x7ED3;&#x6784;&#x3002;&#x540C;&#x6837;&#x7684;&#xFF0C;&#x5982;&#x679C;&#x4E00;&#x4E2A;&#x8282;&#x70B9;&#x88AB;&#x5220;&#x9664;&#xFF0C;&#x8282;&#x70B9;&#x63A7;&#x5236;&#x4E5F;&#x4F1A;&#x5220;&#x9664;&#x8BE5;&#x7ED3;&#x6784;&#x3002;&#x5728; Kubernetes &#x542F;&#x52A8;&#x65F6;&#x53EF;&#x7528;&#x901A;&#x8FC7; <code>--machines</code>&#x6807;&#x8BB0;&#x6765;&#x663E;&#x793A;&#x6307;&#x5B9A;&#x8282;&#x70B9;&#x3002;&#x540C;&#x6837;&#x53EF;&#x4EE5;&#x4F7F;&#x7528; <code>kubectl</code> &#x6765;&#x4E00;&#x6761;&#x4E00;&#x6761;&#x7684;&#x6DFB;&#x52A0;&#x8282;&#x70B9;&#xFF0C;&#x4E24;&#x8005;&#x662F;&#x76F8;&#x540C;&#x7684;&#x3002;&#x901A;&#x8FC7;&#x8BBE;&#x7F6E; <code>--sync_nodes=false</code>&#x6807;&#x8BB0;&#x6765;&#x7981;&#x6B62;&#x96C6;&#x7FA4;&#x4E4B;&#x95F4;&#x7684;&#x8282;&#x70B9;&#x540C;&#x6B65;&#xFF0C;&#x4F60;&#x4E5F;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;  api/kubectl &#x547D;&#x4EE4;&#x884C;&#x6765;&#x589E;&#x5220;&#x8282;&#x70B9;&#x3002;</p>
<h2 id="&#x5BB9;&#x5668;&#x7EC4;">&#x5BB9;&#x5668;&#x7EC4;</h2>
<p>&#x5728; Kubernetes &#x4E2D;&#xFF0C;&#x4F7F;&#x7528;&#x7684;&#x6700;&#x5C0F;&#x5355;&#x4F4D;&#x662F;&#x5BB9;&#x5668;&#x7EC4;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x662F;&#x521B;&#x5EFA;&#xFF0C;&#x8C03;&#x5EA6;&#xFF0C;&#x7BA1;&#x7406;&#x7684;&#x6700;&#x5C0F;&#x5355;&#x4F4D;&#x3002;
&#x4E00;&#x4E2A;&#x5BB9;&#x5668;&#x7EC4;&#x4F7F;&#x7528;&#x76F8;&#x540C;&#x7684; Docker &#x5BB9;&#x5668;&#x5E76;&#x5171;&#x4EAB;&#x5377;&#xFF08;&#x6302;&#x8F7D;&#x70B9;&#xFF09;&#x3002;&#x4E00;&#x4E2A;&#x5BB9;&#x5668;&#x7EC4;&#x662F;&#x4E00;&#x4E2A;&#x7279;&#x5B9A;&#x5E94;&#x7528;&#x7684;&#x6253;&#x5305;&#x96C6;&#x5408;&#xFF0C;&#x5305;&#x542B;&#x4E00;&#x4E2A;&#x6216;&#x591A;&#x4E2A;&#x5BB9;&#x5668;&#x3002;</p>
<p>&#x548C;&#x8FD0;&#x884C;&#x7684;&#x5BB9;&#x5668;&#x7C7B;&#x4F3C;&#xFF0C;&#x4E00;&#x4E2A;&#x5BB9;&#x5668;&#x7EC4;&#x88AB;&#x8BA4;&#x4E3A;&#x53EA;&#x6709;&#x5F88;&#x77ED;&#x7684;&#x8FD0;&#x884C;&#x5468;&#x671F;&#x3002;&#x5BB9;&#x5668;&#x7EC4;&#x88AB;&#x8C03;&#x5EA6;&#x5230;&#x4E00;&#x7EC4;&#x8282;&#x70B9;&#x8FD0;&#x884C;&#xFF0C;&#x76F4;&#x5230;&#x5BB9;&#x5668;&#x7684;&#x751F;&#x547D;&#x5468;&#x671F;&#x7ED3;&#x675F;&#x6216;&#x8005;&#x5176;&#x88AB;&#x5220;&#x9664;&#x3002;&#x5982;&#x679C;&#x8282;&#x70B9;&#x6B7B;&#x6389;&#xFF0C;&#x8FD0;&#x884C;&#x5728;&#x5176;&#x4E0A;&#x7684;&#x5BB9;&#x5668;&#x7EC4;&#x5C06;&#x4F1A;&#x88AB;&#x5220;&#x9664;&#x800C;&#x4E0D;&#x662F;&#x91CD;&#x65B0;&#x8C03;&#x5EA6;&#x3002;&#xFF08;&#x4E5F;&#x8BB8;&#x5728;&#x5C06;&#x6765;&#x7684;&#x7248;&#x672C;&#x4E2D;&#x4F1A;&#x6DFB;&#x52A0;&#x5BB9;&#x5668;&#x7EC4;&#x7684;&#x79FB;&#x52A8;&#xFF09;&#x3002;</p>
<h3 id="&#x5BB9;&#x5668;&#x7EC4;&#x8BBE;&#x8BA1;&#x7684;&#x521D;&#x8877;">&#x5BB9;&#x5668;&#x7EC4;&#x8BBE;&#x8BA1;&#x7684;&#x521D;&#x8877;</h3>
<h3 id="&#x8D44;&#x6E90;&#x5171;&#x4EAB;&#x548C;&#x901A;&#x4FE1;">&#x8D44;&#x6E90;&#x5171;&#x4EAB;&#x548C;&#x901A;&#x4FE1;</h3>
<p>&#x5BB9;&#x5668;&#x7EC4;&#x4E3B;&#x8981;&#x662F;&#x4E3A;&#x4E86;&#x6570;&#x636E;&#x5171;&#x4EAB;&#x548C;&#x5B83;&#x4EEC;&#x4E4B;&#x95F4;&#x7684;&#x901A;&#x4FE1;&#x3002;</p>
<p>&#x5728;&#x4E00;&#x4E2A;&#x5BB9;&#x5668;&#x7EC4;&#x4E2D;&#xFF0C;&#x5BB9;&#x5668;&#x90FD;&#x4F7F;&#x7528;&#x76F8;&#x540C;&#x7684;&#x7F51;&#x7EDC;&#x5730;&#x5740;&#x548C;&#x7AEF;&#x53E3;&#xFF0C;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x672C;&#x5730;&#x7F51;&#x7EDC;&#x6765;&#x76F8;&#x4E92;&#x901A;&#x4FE1;&#x3002;&#x6BCF;&#x4E2A;&#x5BB9;&#x5668;&#x7EC4;&#x90FD;&#x6709;&#x72EC;&#x7ACB;&#x7684; IP&#xFF0C;&#x53EF;&#x7528;&#x901A;&#x8FC7;&#x7F51;&#x7EDC;&#x6765;&#x548C;&#x5176;&#x4ED6;&#x7269;&#x7406;&#x4E3B;&#x673A;&#x6216;&#x8005;&#x5BB9;&#x5668;&#x901A;&#x4FE1;&#x3002;</p>
<p>&#x5BB9;&#x5668;&#x7EC4;&#x6709;&#x4E00;&#x7EC4;&#x5B58;&#x50A8;&#x5377;&#xFF08;&#x6302;&#x8F7D;&#x70B9;&#xFF09;&#xFF0C;&#x4E3B;&#x8981;&#x662F;&#x4E3A;&#x4E86;&#x8BA9;&#x5BB9;&#x5668;&#x5728;&#x91CD;&#x542F;&#x4E4B;&#x540E;&#x53EF;&#x4EE5;&#x4E0D;&#x4E22;&#x5931;&#x6570;&#x636E;&#x3002;</p>
<h3 id="&#x5BB9;&#x5668;&#x7EC4;&#x7BA1;&#x7406;">&#x5BB9;&#x5668;&#x7EC4;&#x7BA1;&#x7406;</h3>
<p>&#x5BB9;&#x5668;&#x7EC4;&#x662F;&#x4E00;&#x4E2A;&#x8FD0;&#x7528;&#x7BA1;&#x7406;&#x548C;&#x90E8;&#x7F72;&#x7684;&#x9AD8;&#x5C42;&#x6B21;&#x62BD;&#x8C61;&#xFF0C;&#x540C;&#x65F6;&#x4E5F;&#x662F;&#x4E00;&#x7EC4;&#x5BB9;&#x5668;&#x7684;&#x63A5;&#x53E3;&#x3002;&#x5BB9;&#x5668;&#x7EC4;&#x662F;&#x90E8;&#x7F72;&#x3001;&#x6C34;&#x5E73;&#x653E;&#x7F29;&#x7684;&#x6700;&#x5C0F;&#x5355;&#x4F4D;&#x3002;</p>
<h3 id="&#x5BB9;&#x5668;&#x7EC4;&#x7684;&#x4F7F;&#x7528;">&#x5BB9;&#x5668;&#x7EC4;&#x7684;&#x4F7F;&#x7528;</h3>
<p>&#x5BB9;&#x5668;&#x7EC4;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x7EC4;&#x5408;&#x6765;&#x6784;&#x5EFA;&#x590D;&#x6742;&#x7684;&#x8FD0;&#x7528;&#xFF0C;&#x5176;&#x672C;&#x6765;&#x7684;&#x610F;&#x4E49;&#x5305;&#x542B;&#xFF1A;</p>
<ul>
<li>&#x5185;&#x5BB9;&#x7BA1;&#x7406;&#xFF0C;&#x6587;&#x4EF6;&#x548C;&#x6570;&#x636E;&#x52A0;&#x8F7D;&#x4EE5;&#x53CA;&#x672C;&#x5730;&#x7F13;&#x5B58;&#x7BA1;&#x7406;&#x7B49;&#x3002;</li>
<li>&#x65E5;&#x5FD7;&#x548C;&#x68C0;&#x67E5;&#x70B9;&#x5907;&#x4EFD;&#xFF0C;&#x538B;&#x7F29;&#xFF0C;&#x5FEB;&#x7167;&#x7B49;&#x3002;</li>
<li>&#x76D1;&#x542C;&#x6570;&#x636E;&#x53D8;&#x5316;&#xFF0C;&#x8DDF;&#x8E2A;&#x65E5;&#x5FD7;&#xFF0C;&#x65E5;&#x5FD7;&#x548C;&#x76D1;&#x63A7;&#x4EE3;&#x7406;&#xFF0C;&#x6D88;&#x606F;&#x53D1;&#x5E03;&#x7B49;&#x3002;</li>
<li>&#x4EE3;&#x7406;&#xFF0C;&#x7F51;&#x6865;</li>
<li>&#x63A7;&#x5236;&#x5668;&#xFF0C;&#x7BA1;&#x7406;&#xFF0C;&#x914D;&#x7F6E;&#x4EE5;&#x53CA;&#x66F4;&#x65B0;</li>
</ul>
<h3 id="&#x66FF;&#x4EE3;&#x65B9;&#x6848;">&#x66FF;&#x4EE3;&#x65B9;&#x6848;</h3>
<p>&#x4E3A;&#x4EC0;&#x4E48;&#x4E0D;&#x5728;&#x4E00;&#x4E2A;&#x5355;&#x4E00;&#x7684;&#x5BB9;&#x5668;&#x91CC;&#x8FD0;&#x884C;&#x591A;&#x4E2A;&#x7A0B;&#x5E8F;&#xFF1F;</p>
<ul>
<li>1.&#x900F;&#x660E;&#x5316;&#x3002;&#x4E3A;&#x4E86;&#x4F7F;&#x5BB9;&#x5668;&#x7EC4;&#x4E2D;&#x7684;&#x5BB9;&#x5668;&#x4FDD;&#x6301;&#x4E00;&#x81F4;&#x7684;&#x57FA;&#x7840;&#x8BBE;&#x65BD;&#x548C;&#x670D;&#x52A1;&#xFF0C;&#x6BD4;&#x5982;&#x8FDB;&#x7A0B;&#x7BA1;&#x7406;&#x548C;&#x8D44;&#x6E90;&#x76D1;&#x63A7;&#x3002;&#x8FD9;&#x6837;&#x8BBE;&#x8BA1;&#x662F;&#x4E3A;&#x4E86;&#x7528;&#x6237;&#x7684;&#x4FBF;&#x5229;&#x6027;&#x3002;</li>
<li>2.&#x89E3;&#x5076;&#x8F6F;&#x4EF6;&#x4E4B;&#x95F4;&#x7684;&#x4F9D;&#x8D56;&#x3002;&#x6BCF;&#x4E2A;&#x5BB9;&#x5668;&#x90FD;&#x53EF;&#x80FD;&#x91CD;&#x65B0;&#x6784;&#x5EFA;&#x548C;&#x53D1;&#x5E03;&#xFF0C;Kubernetes &#x5FC5;&#x987B;&#x652F;&#x6301;&#x70ED;&#x53D1;&#x5E03;&#x548C;&#x70ED;&#x66F4;&#x65B0;&#xFF08;&#x5C06;&#x6765;&#xFF09;&#x3002;</li>
<li>3.&#x65B9;&#x4FBF;&#x4F7F;&#x7528;&#x3002;&#x7528;&#x6237;&#x4E0D;&#x5FC5;&#x8FD0;&#x884C;&#x72EC;&#x7ACB;&#x7684;&#x7A0B;&#x5E8F;&#x7BA1;&#x7406;&#xFF0C;&#x4E5F;&#x4E0D;&#x7528;&#x62C5;&#x5FC3;&#x6BCF;&#x4E2A;&#x8FD0;&#x7528;&#x7A0B;&#x5E8F;&#x7684;&#x9000;&#x51FA;&#x72B6;&#x6001;&#x3002;</li>
<li>4.&#x9AD8;&#x6548;&#x3002;&#x8003;&#x8651;&#x5230;&#x57FA;&#x7840;&#x8BBE;&#x65BD;&#x6709;&#x66F4;&#x591A;&#x7684;&#x804C;&#x8D23;&#xFF0C;&#x5BB9;&#x5668;&#x5FC5;&#x987B;&#x8981;&#x8F7B;&#x91CF;&#x5316;&#x3002;</li>
</ul>
<h3 id="&#x5BB9;&#x5668;&#x7EC4;&#x7684;&#x751F;&#x547D;&#x72B6;&#x6001;">&#x5BB9;&#x5668;&#x7EC4;&#x7684;&#x751F;&#x547D;&#x72B6;&#x6001;</h3>
<p>&#x5305;&#x62EC;&#x82E5;&#x5E72;&#x72B6;&#x6001;&#x503C;&#xFF1A;<code>pending</code>&#x3001;<code>running</code>&#x3001;<code>succeeded</code>&#x3001;<code>failed</code>&#x3002;</p>
<h4 id="pending">pending</h4>
<p>&#x5BB9;&#x5668;&#x7EC4;&#x5DF2;&#x7ECF;&#x88AB;&#x8282;&#x70B9;&#x63A5;&#x53D7;&#xFF0C;&#x4F46;&#x6709;&#x4E00;&#x4E2A;&#x6216;&#x591A;&#x4E2A;&#x5BB9;&#x5668;&#x8FD8;&#x6CA1;&#x6709;&#x8FD0;&#x884C;&#x8D77;&#x6765;&#x3002;&#x8FD9;&#x5C06;&#x5305;&#x542B;&#x67D0;&#x4E9B;&#x8282;&#x70B9;&#x6B63;&#x5728;&#x4E0B;&#x8F7D;&#x955C;&#x50CF;&#x7684;&#x65F6;&#x95F4;&#xFF0C;&#x8FD9;&#x79CD;&#x60C5;&#x5F62;&#x4F1A;&#x4F9D;&#x8D56;&#x4E8E;&#x7F51;&#x7EDC;&#x60C5;&#x51B5;&#x3002;</p>
<h4 id="running">running</h4>
<p>&#x5BB9;&#x5668;&#x7EC4;&#x5DF2;&#x7ECF;&#x88AB;&#x8C03;&#x5EA6;&#x5230;&#x8282;&#x70B9;&#xFF0C;&#x5E76;&#x4E14;&#x6240;&#x6709;&#x7684;&#x5BB9;&#x5668;&#x90FD;&#x5DF2;&#x7ECF;&#x542F;&#x52A8;&#x3002;&#x81F3;&#x5C11;&#x6709;&#x4E00;&#x4E2A;&#x5BB9;&#x5668;&#x5904;&#x4E8E;&#x8FD0;&#x884C;&#x72B6;&#x6001;&#xFF08;&#x6216;&#x8005;&#x5904;&#x4E8E;&#x91CD;&#x542F;&#x72B6;&#x6001;&#xFF09;&#x3002;</p>
<h4 id="succeeded">succeeded</h4>
<p>&#x6240;&#x6709;&#x7684;&#x5BB9;&#x5668;&#x90FD;&#x6B63;&#x5E38;&#x9000;&#x51FA;&#x3002;</p>
<h4 id="failed">failed</h4>
<p>&#x5BB9;&#x5668;&#x7EC4;&#x4E2D;&#x6240;&#x6709;&#x5BB9;&#x5668;&#x90FD;&#x610F;&#x5916;&#x4E2D;&#x65AD;&#x4E86;&#x3002;</p>
<h3 id="&#x5BB9;&#x5668;&#x7EC4;&#x751F;&#x547D;&#x5468;&#x671F;">&#x5BB9;&#x5668;&#x7EC4;&#x751F;&#x547D;&#x5468;&#x671F;</h3>
<p>&#x901A;&#x5E38;&#x6765;&#x8BF4;&#xFF0C;&#x5982;&#x679C;&#x5BB9;&#x5668;&#x7EC4;&#x88AB;&#x521B;&#x5EFA;&#x4E86;&#x5C31;&#x4E0D;&#x4F1A;&#x81EA;&#x52A8;&#x9500;&#x6BC1;&#xFF0C;&#x9664;&#x975E;&#x88AB;&#x67D0;&#x79CD;&#x884C;&#x4E3A;&#x89E6;&#x53D1;&#xFF0C;&#x800C;&#x89E6;&#x53D1;&#x6B64;&#x79CD;&#x60C5;&#x51B5;&#x53EF;&#x80FD;&#x662F;&#x4EBA;&#x4E3A;&#xFF0C;&#x6216;&#x8005;&#x590D;&#x5236;&#x63A7;&#x5236;&#x5668;&#x6240;&#x4E3A;&#x3002;&#x552F;&#x4E00;&#x4F8B;&#x5916;&#x7684;&#x662F;&#x5BB9;&#x5668;&#x7EC4;&#x7531; succeeded &#x72B6;&#x6001;&#x6210;&#x529F;&#x9000;&#x51FA;&#xFF0C;&#x6216;&#x8005;&#x5728;&#x4E00;&#x5B9A;&#x65F6;&#x95F4;&#x5185;&#x91CD;&#x8BD5;&#x591A;&#x6B21;&#x4F9D;&#x7136;&#x5931;&#x8D25;&#x3002;</p>
<p>&#x5982;&#x679C;&#x67D0;&#x4E2A;&#x8282;&#x70B9;&#x6B7B;&#x6389;&#x6216;&#x8005;&#x4E0D;&#x80FD;&#x8FDE;&#x63A5;&#xFF0C;&#x90A3;&#x4E48;&#x8282;&#x70B9;&#x63A7;&#x5236;&#x5668;&#x5C06;&#x4F1A;&#x6807;&#x8BB0;&#x5176;&#x4E0A;&#x7684;&#x5BB9;&#x5668;&#x7EC4;&#x7684;&#x72B6;&#x6001;&#x4E3A; <code>failed</code>&#x3002;</p>
<p>&#x4E3E;&#x4F8B;&#x5982;&#x4E0B;&#x3002;</p>
<ul>
<li>&#x5BB9;&#x5668;&#x7EC4;&#x72B6;&#x6001; <code>running</code>&#xFF0C;&#x6709; 1 &#x5BB9;&#x5668;&#xFF0C;&#x5BB9;&#x5668;&#x6B63;&#x5E38;&#x9000;&#x51FA;<ul>
<li>&#x8BB0;&#x5F55;&#x5B8C;&#x6210;&#x4E8B;&#x4EF6;</li>
<li>&#x5982;&#x679C;&#x91CD;&#x542F;&#x7B56;&#x7565;&#x4E3A;&#xFF1A;<ul>
<li>&#x59CB;&#x7EC8;&#xFF1A;&#x91CD;&#x542F;&#x5BB9;&#x5668;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x4FDD;&#x6301; <code>running</code></li>
<li>&#x5931;&#x8D25;&#x65F6;&#xFF1A;&#x5BB9;&#x5668;&#x7EC4;&#x53D8;&#x4E3A; <code>succeeded</code></li>
<li>&#x4ECE;&#x4E0D;&#xFF1A;&#x5BB9;&#x5668;&#x7EC4;&#x53D8;&#x4E3A; <code>succeeded</code></li>
</ul>
</li>
</ul>
</li>
<li>&#x5BB9;&#x5668;&#x7EC4;&#x72B6;&#x6001; <code>running</code>&#xFF0C;&#x6709;1&#x5BB9;&#x5668;&#xFF0C;&#x5BB9;&#x5668;&#x5F02;&#x5E38;&#x9000;&#x51FA;<ul>
<li>&#x8BB0;&#x5F55;&#x5931;&#x8D25;&#x4E8B;&#x4EF6;</li>
<li>&#x5982;&#x679C;&#x91CD;&#x542F;&#x7B56;&#x7565;&#x4E3A;&#xFF1A;<ul>
<li>&#x59CB;&#x7EC8;&#xFF1A;&#x91CD;&#x542F;&#x5BB9;&#x5668;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x4FDD;&#x6301; <code>running</code></li>
<li>&#x5931;&#x8D25;&#x65F6;&#xFF1A;&#x91CD;&#x542F;&#x5BB9;&#x5668;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x4FDD;&#x6301; <code>running</code></li>
<li>&#x4ECE;&#x4E0D;&#xFF1A;&#x5BB9;&#x5668;&#x7EC4;&#x53D8;&#x4E3A; <code>failed</code></li>
</ul>
</li>
</ul>
</li>
<li>&#x5BB9;&#x5668;&#x7EC4;&#x72B6;&#x6001; <code>running</code>&#xFF0C;&#x6709;2&#x5BB9;&#x5668;&#xFF0C;&#x6709;1&#x5BB9;&#x5668;&#x5F02;&#x5E38;&#x9000;&#x51FA;<ul>
<li>&#x8BB0;&#x5F55;&#x5931;&#x8D25;&#x4E8B;&#x4EF6;</li>
<li>&#x5982;&#x679C;&#x91CD;&#x542F;&#x7B56;&#x7565;&#x4E3A;&#xFF1A;<ul>
<li>&#x59CB;&#x7EC8;&#xFF1A;&#x91CD;&#x542F;&#x5BB9;&#x5668;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x4FDD;&#x6301; <code>running</code></li>
<li>&#x5931;&#x8D25;&#x65F6;&#xFF1A;&#x91CD;&#x542F;&#x5BB9;&#x5668;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x4FDD;&#x6301; <code>running</code></li>
<li>&#x4ECE;&#x4E0D;&#xFF1A;&#x5BB9;&#x5668;&#x7EC4;&#x4FDD;&#x6301; <code>running</code><ul>
<li>&#x5F53;&#x6709;2&#x5BB9;&#x5668;&#x9000;&#x51FA;</li>
</ul>
</li>
<li>&#x8BB0;&#x5F55;&#x5931;&#x8D25;&#x4E8B;&#x4EF6;</li>
<li>&#x5982;&#x679C;&#x91CD;&#x542F;&#x7B56;&#x7565;&#x4E3A;&#xFF1A;<ul>
<li>&#x59CB;&#x7EC8;&#xFF1A;&#x91CD;&#x542F;&#x5BB9;&#x5668;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x4FDD;&#x6301; <code>running</code></li>
<li>&#x5931;&#x8D25;&#x65F6;&#xFF1A;&#x91CD;&#x542F;&#x5BB9;&#x5668;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x4FDD;&#x6301; <code>running</code></li>
<li>&#x4ECE;&#x4E0D;&#xFF1A;&#x5BB9;&#x5668;&#x7EC4;&#x53D8;&#x4E3A; <code>failed</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>&#x5BB9;&#x5668;&#x7EC4;&#x72B6;&#x6001; <code>running</code>&#xFF0C;&#x5BB9;&#x5668;&#x5185;&#x5B58;&#x4E0D;&#x8DB3;<ul>
<li>&#x6807;&#x8BB0;&#x5BB9;&#x5668;&#x9519;&#x8BEF;&#x4E2D;&#x65AD;</li>
<li>&#x8BB0;&#x5F55;&#x5185;&#x5B58;&#x4E0D;&#x8DB3;&#x4E8B;&#x4EF6;</li>
<li>&#x5982;&#x679C;&#x91CD;&#x542F;&#x7B56;&#x7565;&#x4E3A;&#xFF1A;<ul>
<li>&#x59CB;&#x7EC8;&#xFF1A;&#x91CD;&#x542F;&#x5BB9;&#x5668;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x4FDD;&#x6301; <code>running</code></li>
<li>&#x5931;&#x8D25;&#x65F6;&#xFF1A;&#x91CD;&#x542F;&#x5BB9;&#x5668;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x4FDD;&#x6301; <code>running</code></li>
<li>&#x4ECE;&#x4E0D;&#xFF1A;&#x8BB0;&#x5F55;&#x9519;&#x8BEF;&#x4E8B;&#x4EF6;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x53D8;&#x4E3A; <code>failed</code></li>
</ul>
</li>
</ul>
</li>
<li>&#x5BB9;&#x5668;&#x7EC4;&#x72B6;&#x6001; <code>running</code>&#xFF0C;&#x4E00;&#x5757;&#x78C1;&#x76D8;&#x6B7B;&#x6389;<ul>
<li>&#x6740;&#x6B7B;&#x6240;&#x6709;&#x5BB9;&#x5668;</li>
<li>&#x8BB0;&#x5F55;&#x4E8B;&#x4EF6;</li>
<li>&#x5BB9;&#x5668;&#x7EC4;&#x53D8;&#x4E3A; <code>failed</code></li>
<li>&#x5982;&#x679C;&#x5BB9;&#x5668;&#x7EC4;&#x8FD0;&#x884C;&#x5728;&#x4E00;&#x4E2A;&#x63A7;&#x5236;&#x5668;&#x4E0B;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x5C06;&#x4F1A;&#x5728;&#x5176;&#x4ED6;&#x5730;&#x65B9;&#x91CD;&#x65B0;&#x521B;&#x5EFA;</li>
</ul>
</li>
<li>&#x5BB9;&#x5668;&#x7EC4;&#x72B6;&#x6001; <code>running</code>&#xFF0C;&#x5BF9;&#x5E94;&#x7684;&#x8282;&#x70B9;&#x6BB5;&#x6EA2;&#x51FA;<ul>
<li>&#x8282;&#x70B9;&#x63A7;&#x5236;&#x5668;&#x7B49;&#x5230;&#x8D85;&#x65F6;</li>
<li>&#x8282;&#x70B9;&#x63A7;&#x5236;&#x5668;&#x6807;&#x8BB0;&#x5BB9;&#x5668;&#x7EC4; <code>failed</code></li>
<li>&#x5982;&#x679C;&#x5BB9;&#x5668;&#x7EC4;&#x8FD0;&#x884C;&#x5728;&#x4E00;&#x4E2A;&#x63A7;&#x5236;&#x5668;&#x4E0B;&#xFF0C;&#x5BB9;&#x5668;&#x7EC4;&#x5C06;&#x4F1A;&#x5728;&#x5176;&#x4ED6;&#x5730;&#x65B9;&#x91CD;&#x65B0;&#x521B;&#x5EFA;</li>
</ul>
</li>
</ul>
<h2 id="replication-controllers">Replication Controllers</h2>
<h2 id="&#x670D;&#x52A1;">&#x670D;&#x52A1;</h2>
<h2 id="&#x5377;">&#x5377;</h2>
<h2 id="&#x6807;&#x7B7E;">&#x6807;&#x7B7E;</h2>
<h2 id="&#x63A5;&#x53E3;&#x6743;&#x9650;">&#x63A5;&#x53E3;&#x6743;&#x9650;</h2>
<h2 id="web&#x754C;&#x9762;">web&#x754C;&#x9762;</h2>
<h2 id="&#x547D;&#x4EE4;&#x884C;&#x64CD;&#x4F5C;">&#x547D;&#x4EE4;&#x884C;&#x64CD;&#x4F5C;</h2>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="intro.html" class="navigation navigation-prev " aria-label="Previous page: 简介">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="design.html" class="navigation navigation-next " aria-label="Next page: 架构设计">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"基本概念","level":"1.20.2","depth":2,"next":{"title":"架构设计","level":"1.20.3","depth":2,"path":"kubernetes/design.md","ref":"kubernetes/design.md","articles":[]},"previous":{"title":"简介","level":"1.20.1","depth":2,"path":"kubernetes/intro.md","ref":"kubernetes/intro.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"kubernetes/concepts.md","mtime":"2020-04-12T12:29:28.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-04-23T10:39:04.870Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

